#include <iostream>
#include <memory>

#include "TcpServer.hpp"
#include "Log.hpp"
#include "CommandExec.hpp"
using namespace LogMudule;
int main()
{
    ENABLE_CONSOLE_LOG();
    Command cmd;
    std::unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>([&cmd](std::string cmdstr) {
        return cmd.Execute(cmdstr);
    });
    tsvr->InitServer();
    tsvr->Start();
    return 0;
}